<?php
/**
 * @package Green Realty component
 * @copyright (C) 2012 Greenkey studio. All rights reserved
 * @license GNU/GPL Version 2 - http://www.gnu.org/licenses/gpl-2.0.html
 * @author Greenkey studio
 */

// No direct access to this file
defined('_JEXEC') or die('Restricted access');

// import Joomla controllerform library
jimport('joomla.application.component.controllerform');

/**
 * GRealty Controller
 */
class GRealtyControllerGRealty extends JControllerForm
{

	public function save($key, $urlVar)
	{
		$return = parent::save($key, $urlVar);

		// Redirect to the main page.
        $this->setRedirect('index.php?option=com_grealty&view=grmain');

		return $return;
	}

	public function cancel($key = null)
	{
		$return = parent::cancel($key);

		// Redirect to the main page.
        $this->setRedirect('index.php?option=com_grealty&view=grmain');

		return $return;
	}

}
?>
